﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Data.SqlClient;


namespace BackOfficeAssistance
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }

        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            BackOfficeAssistance.BizConfigInfoDataSet bizConfigInfoDataSet = ((BackOfficeAssistance.BizConfigInfoDataSet)(this.FindResource("bizConfigInfoDataSet")));
            // Load data into the table folder_type. You can modify this code as needed.
            BackOfficeAssistance.BizConfigInfoDataSetTableAdapters.folder_typeTableAdapter bizConfigInfoDataSetfolder_typeTableAdapter = new BackOfficeAssistance.BizConfigInfoDataSetTableAdapters.folder_typeTableAdapter();
            bizConfigInfoDataSetfolder_typeTableAdapter.Fill(bizConfigInfoDataSet.folder_type);
            System.Windows.Data.CollectionViewSource folder_typeViewSource = ((System.Windows.Data.CollectionViewSource)(this.FindResource("folder_typeViewSource")));
            folder_typeViewSource.View.MoveCurrentToFirst();
            // Load data into the table svn. You can modify this code as needed.
            BackOfficeAssistance.BizConfigInfoDataSetTableAdapters.svnTableAdapter bizConfigInfoDataSetsvnTableAdapter = new BackOfficeAssistance.BizConfigInfoDataSetTableAdapters.svnTableAdapter();
            bizConfigInfoDataSetsvnTableAdapter.Fill(bizConfigInfoDataSet.svn);
            System.Windows.Data.CollectionViewSource svnViewSource = ((System.Windows.Data.CollectionViewSource)(this.FindResource("svnViewSource")));
            svnViewSource.View.MoveCurrentToFirst();
            // Load data into the table tomcat. You can modify this code as needed.
            BackOfficeAssistance.BizConfigInfoDataSetTableAdapters.tomcatTableAdapter bizConfigInfoDataSettomcatTableAdapter = new BackOfficeAssistance.BizConfigInfoDataSetTableAdapters.tomcatTableAdapter();
            bizConfigInfoDataSettomcatTableAdapter.Fill(bizConfigInfoDataSet.tomcat);
            System.Windows.Data.CollectionViewSource tomcatViewSource = ((System.Windows.Data.CollectionViewSource)(this.FindResource("tomcatViewSource")));
            tomcatViewSource.View.MoveCurrentToFirst();
            // Load data into the table iboss. You can modify this code as needed.
            BackOfficeAssistance.BizConfigInfoDataSetTableAdapters.ibossTableAdapter bizConfigInfoDataSetibossTableAdapter = new BackOfficeAssistance.BizConfigInfoDataSetTableAdapters.ibossTableAdapter();
            bizConfigInfoDataSetibossTableAdapter.Fill(bizConfigInfoDataSet.iboss);
            System.Windows.Data.CollectionViewSource ibossViewSource = ((System.Windows.Data.CollectionViewSource)(this.FindResource("ibossViewSource")));
            ibossViewSource.View.MoveCurrentToFirst();
            // Load data into the table setting. You can modify this code as needed.
            BackOfficeAssistance.BizConfigInfoDataSetTableAdapters.settingTableAdapter bizConfigInfoDataSetsettingTableAdapter = new BackOfficeAssistance.BizConfigInfoDataSetTableAdapters.settingTableAdapter();
            bizConfigInfoDataSetsettingTableAdapter.Fill(bizConfigInfoDataSet.setting);
            System.Windows.Data.CollectionViewSource settingViewSource = ((System.Windows.Data.CollectionViewSource)(this.FindResource("settingViewSource")));
            settingViewSource.View.MoveCurrentToFirst();
            // Load data into the table sub_folder. You can modify this code as needed.
            BackOfficeAssistance.BizConfigInfoDataSetTableAdapters.sub_folderTableAdapter bizConfigInfoDataSetsub_folderTableAdapter = new BackOfficeAssistance.BizConfigInfoDataSetTableAdapters.sub_folderTableAdapter();
            bizConfigInfoDataSetsub_folderTableAdapter.Fill(bizConfigInfoDataSet.sub_folder);
            System.Windows.Data.CollectionViewSource sub_folderViewSource = ((System.Windows.Data.CollectionViewSource)(this.FindResource("sub_folderViewSource")));
            sub_folderViewSource.View.MoveCurrentToFirst();
            // Load data into the table msbuild. You can modify this code as needed.
            BackOfficeAssistance.BizConfigInfoDataSetTableAdapters.msbuildTableAdapter bizConfigInfoDataSetmsbuildTableAdapter = new BackOfficeAssistance.BizConfigInfoDataSetTableAdapters.msbuildTableAdapter();
            bizConfigInfoDataSetmsbuildTableAdapter.Fill(bizConfigInfoDataSet.msbuild);
            System.Windows.Data.CollectionViewSource msbuildViewSource = ((System.Windows.Data.CollectionViewSource)(this.FindResource("msbuildViewSource")));
            msbuildViewSource.View.MoveCurrentToFirst();
        }
    
       
        private void Button_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            //NavigationService ns = new NavigationService();
            //this.NavigationService.Navigate(new Uri("config.xaml", UriKind.Relative));
            //NavigationService.GetNavigationService(this).Navigate(new Uri("/config.xaml", UriKind.Relative));
            SettingPanel openPage = new SettingPanel();
            //openPage.
            //this.Content = openPage;
            //Application.LoadComponent(new Uri("config.xaml", UriKind.Relative));
        }
    }
}
